<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="/WEB-INF/jsp/includeTaglib.jsp" %>
			<p>督导</p>
			<ol id="selectable">
				<c:forEach var="employee" items="${employees}" varStatus="status">
					<li class="ui-widget-content" empId="${employee.empId}" projEmp="${employee.id}" projectId="${projectId}">
						<table  class="globalText" width="100%">
							<tr >
								<td width="33%">${employee.name}</td>
								<td width="33%">${employee.titleWithinTheProject}</td>
								<td width="33%">
									<c:choose>
						          		<c:when test="${employee.rankType=='LEVEL_EXECUTION'}">
						          			执行层
						          		</c:when>
						          		<c:when test="${employee.rankType=='LEVEL_MANAGEMENT'}">
						          			管理层
						          		</c:when>
						          	</c:choose>
									
								</td>
							</tr>
						</table>
					</li>
				</c:forEach>
	
			</ol>

			<script>
				var empId="";
				var projEmpId="";
				$("#selectable" ).selectable({
					selected:function(event, ui){
						projEmpId=$(ui.selected).attr('projEmp');
						empId=$(ui.selected).attr('empId');
						findPreAssignedUserStores($(ui.selected).attr('empId'),$(ui.selected).attr('projectId'));
					}
				});
				function findPreAssignedUserStores(empId,projectId){
					$("#storeList").html("<div style='margin-top:20px;' align='center'>Loading...</div>");
					$.get("<c:url value ='/project/employeeAssignedStores.html'/>?empId="+empId+"&projectId="+projectId,
							  null,
							  function(data){
									$("#storeList").html(data);
							  });
				}
			</script>